#!/bin/ksh

BASEDIR=$2
SERVICE_BASE_DIR=$3
SERVICE_VERSION=$4
SERVICE_NAME=$5
SERVICE_DOMAIN_NAME=$6
SERVICE_SHORT_NAME=$7
RELEASE_NUMBER=$8
CONTEXT_PATH=$9
MODEL_SERVICE_NAME=${10}
MODEL_SERVICE_SHORT_NAME=${11}
MAVEN_LOCAL_REPO=${12}
TYPES_MODEL_PACKAGE=${13}

echo CMD ARGS = $*

OLDDIR=`pwd`
. $1/bin/setWLSEnv.sh
cd $OLDDIR

echo Invoking Service Adapter JWSC
ant -d -v -Dbasedir=$BASEDIR -Dservice.base.dir=$SERVICE_BASE_DIR -Dservice.version=$SERVICE_VERSION -Dservice.name=$SERVICE_NAME -Dservice.domain.name=$SERVICE_DOMAIN_NAME -Dservice.short.name=$SERVICE_SHORT_NAME -Drelease.number=$RELEASE_NUMBER -Dcontext.path=$CONTEXT_PATH -Dmodel.service.name=$MODEL_SERVICE_NAME -Dmodel.service.short.name=$MODEL_SERVICE_SHORT_NAME -Dtypes.model.package=$TYPES_MODEL_PACKAGE -Dbea.home=$BEA_HOME -Dmaven.local.repo=$MAVEN_LOCAL_REPO -buildfile $SERVICE_BASE_DIR/build.xml ntd:jwsc_call_service_adapter

